close all
clear all

%struct Gvars input 
smallN = 1e-6;
Gvars = config;
input = userInput(Gvars);
[Gvars, input] = initControlVars(Gvars, input);

%% random design:
%x=(100*ones(1,Nvariables)-zeros(1,Nvariables)).*rand(1,Nvariables)+zeros(1,Nvariables);


%% thrust-optimal design (Fig. 6 of paper):
%x = 100*[0.472445801686626,0.459542999331384,0.583674104524529,0.651434406063733,0.369929383665380,0.678843613036270,0.214735286283360,0.732165964348907,0.284342288000006,0.910406529292975,0.544949768705627,0.677988484340574,0.404623699756676,0.637308157680967,0.636917380925788,0.262284632719751,0.517955592956719,0.160147884005540,0.641766942260266,0.849365568848001,0.686414431615966,0.0467243877332384,0.415099882356820,0.133876223438717,0.675425805104644,0.366662876037165,0.335662282553640,0.242501455209955,0.298475271376226,0.281201922960464,0.513577667514257,0.241395479814053,0.0424941228260312,0.541933811413096,0.507822721478400,0.319068000974357,0.456903239355350,0.434092272710786,0.556552488794441,0.572772771038918,0.649442148379423,0.611258465645166,0.408214192603549,0.483960111024988,0.107612604113975,0.847489916174681,0.435176810837981,0.696958397184610,0.377108559043103,0.553164612879270,0.529321566607059,0.236803020250123,0.676176741559618,0.130871759866136,0.741802195063910,0.546390329364358,0.470735492558272,0.340552858113317,0.567048819904702,0.614797424176976,0.382011283429082,0.267918915811802,0.759588716400221,0.416068150628373,0.255461655692449,0.292183691572167,0.769667120417778,0.904708981226327,0.685200688318534,0.373472181646643,0.608473095677633,0.578352251193366,0.377922105627902,0.432989088952301,0.556190915813902,0.664106906470639,0.681886761795047,0.719273034961130,0.625398122885375,0.697217735234407,0.866401816841947,0.246159433304114,0.391684300965315,0.608269942063197,0.874722952242260,0.808812422213514,0.692704573246902,0.377731349984584,0.784970332216070,0.613462269549327,0.944887971000772,0.841592447362007,0.607924702298449,0.191477959276607,0.203131265647791,0.357420564137589,0.404936474200852,0.252117955477935,0.484562349902391,0.145448224939787,0.496682962890657,0.184893463321296,0.785491284211596,0.437647741033560,0.337909662903055,0.622630959014072,0.758071805495599,0.578026362330676,0.509275105451865,0.195497340579241,0.162522530530306,0.269498333943349,0.628721237568448,0.767074549923867,0.761152762770875,0.355992488043334,0.676558065292171,0.338821131709974,0.578475764301702,0.329717589908061,0.779602553886070,0.276333395374590,0.896524537549203,0.536368736192710,0.800759019702499,0.433850309389432,0.994623992284401,0.345000101454071,0.381119435799068,0.522616246577513,0.745960390578589,0.584823999081182,0.233917915703996,0.939257371811676,0.489704352246879,0.873566189617620,0.299101056901942,0.714295853772111,0.518225447571264,0.411338830386704,0.711196610345606,0.678965436843977,0.211294531352970,0.138698229119023,0.522502311088718,0.283077661937521,0.639375719394293,0.671450593660698,0.642267757247120,0.860245295155758,0.265119597904168,0.291918353753885,0.381377970750422,0.565978285545953,0.801543424759071,0.469663862537832,0.484427247190790,0.172520382346120,0.478088604701015,0.463562573111844,0.431575292259088,0.245432818706299,0.325588167451039,0.567704456334715,0.558144835421662,0.304198705705640,0.884275448584402,0.448318101063809,0.871064402026399,0.810777356256257,0.357536046800686,0.234057643494915,0.400267117492489,0.313774547567184,0.388849140913306,0.338118406210702,0.662453707681062,0.366156275522897,0.0701264876259274,0.810748990012079,0.443415630346994,0.929725996485381,0.706491715777002,0.734658207807689,0.411400607854966,0.155495774152575,0.475942544806840,0.389045131107901,0.923391664034493,0.401173685466961,0.595180226187156,0.501523090049087,0.710276758393848,0.199159704996259,0.385255888691972,0.483181669401934,0.232485677062850,0.503369750700990,0.662192717821533,0.376791422380850,0.527413355793714,0.369743860846438,0.438909053210349,0.643644590015863,0.684057002598359,0.499676290529521,0.583703250499763,0.678355239927513,0.211570320669235,0.318318960065946,0.516346733953812,0.689963151899451,0.108779002212079,0.375516907215100,0.323579930237649,0.480938116260115,0.612111239336577,0.368175319978343,0.753816745568254,0.305557854010882,0.217126456240018,0.619031017060801,0.668017623501751,0.936817769388226,0.909130943582303,0.423667741973641,0.531027412361738,0.233745888239403,0.467998469934789,0.752076805408971,0.753277928784929,0.680301945809691,0.630476352822669,0.607090562551285,0.195066539413769,0.324518510535574,0.646277695845965,0.905704696720691,0.738763839463991,0.510364463788751,0.626881242372223,0.256253287067587,0.441441037748651,0.726019116026598,0.663391260420804,0.731478708186324,0.783841880694812,0.330436327954695,0.371751404374420,0.368282492548625,0.432973951715407,0.346634851711906,0.637534602488793,0.133821804642720,0.522461676196449,0.583781065698601,0.398111827523560,0.369276292034799,0.808068149196002,0.615522581404225,0.930815026789701,0.910280132377118,0.813068420469566,0.480029362210390,0.264396795163027,0.586717045114190,0.457092454362025,0.910273040393873,0.732906732156114,0.849027039366721,0.0356443416298504,0.233819836326436,0.587462547321343,0.463011602874250,0.447605796990533,0.709125090962580,0.625306913481958,0.409181320913957,0.371934049289193,0.322414629507719,0.571704080834406,0.318548280930086,0.617173734469157,0.324056256520907,0.282560614393472,0.266915833212409,0.464135562406473,0.197675481250793,0.508805081634500,0.652470049360779,0.241682315021202,0.328327448689512,0.346331259114554,0.833406825162883,0.702991785332211,0.469024029448509,0.331540316800181,0.492023903980355,0.693238344329986,0.108762451249531,0.348828327146953,0.895791739158688,0.356483613486498,0.567915440553603,0.745644096439148,0.500164158299156,0.336715560177967,0.323216683364033,0.109539337910660,0.626962841070345,0.466618146339812,0.944742296081131,0.305414875834215,0.518892324391227,0.540950124609662,0.621470235650283,0.581438296241946,0.468597168051333,0.822299766860136,0.443470275510308,0.400418548232224,0.877770887741995,0.385676066346636,0.671323863003931,0.460648529453303,0.740322599628652,0.464034778547853,0.679289736139776,0.322728884817596,0.240000724924722,0.422838568030365,0.822988477453942,0.449494439305862,0.370014208828272,0.711338833330169,0.397088067893191,0.760010860228271,0.645826907217478,0.408833173766279,0.238738925006558,0.762496737597112,0.514820782270687,0.504728120170623,0.384304628481600,0.372878763146061,0.747682052120926,0.433731720077466,0.199016555051171,0.860311624786602,0.466059456874746,0.303771687201403,0.585118890643535,0.194265132350393,0.195635785418705,0.700666558292293,0.536800179630697,0.299652550209232,0.580915234257175,0.728808126277982,0.361051469300166,0.508930231240948,0.693062178061468,0.317668872053542,0.0115098919503281,0.257360042555208,0.473722682002469,0.452074022336766,0.0808458449368937,0.737027817508739,0.493831703375842,0.718707059830418,0.733226475614659,0.779212385562833,0.323873682000691,0.516341215451159,0.577688836438083,0.406925948842095,0.611558691673866,0.474608753974974,0.479809133420998,0.775166539268644,0.679631119945151,0.544405163376800,0.267437425350433,0.739507625469995,0.460477192787850,0.597102026853255,0.306435010657241,0.891775676107624,0.752695652617167,0.630525726229959,0.880494414931305,0.0978452572527331,0.832093261328548,0.665719583601444,0.761344769934320,0.336618575750920,0.444984652516205,0.171659734389411,0.451694911632326,0.397465669306626,0.902950198985156,0.813348879187670,0.752895118697242,0.579421923531848,0.315447994765655,0.241360121355353,0.266218164489172,0.818867646383705,0.136989282349730,0.734694142074901,0.856387615326563,0.428817688405651,0.137281621428661,0.532870487604434,0.127901859289214,0.487363845586652,0.340687390525345,0.467517642885531,0.390889652681618,0.449908080034311,0.491495035807103,0.824470165936175,0.267470715191972,0.653669199585772,0.642585854038398,0.304278555680193,0.494897966705103,0.392902979457807,0.456072596664644,0.656527270915894,0.598636164807098,0.245767614414958,0.676922457475586,0.331239527830374,0.458193476154545,0.297530779322666,0.625749644386124,0.590435917893598,0.564214184362784,0.122780385294385,0.362514652243982,0.908627546538284,0.824212970683379,0.814351841364158,0.478046291247780,0.663055798203814,0.470900701161443,0.557965773924799,0.386520212916162,0.340320410760863,0.776470186136245,0.573192936239567,0.768763248290511,0.301813642038258,0.545039733220052,0.914100868122050,0.793003568990395,0.182467189351036,0.246588344072950,0.519253878000071,0.803156985180270,0.365850145501301,0.523819607564749,0.385343205818311,0.717531754961076,0.655076267618737,0.723457367904905,0.751079306919574,0.572725429263298,0.228431187842394,0.460623442459936,0.464448844712347,0.875716190847592,0.258349219323625,0.252963764606645,0.201002226651314,0.313919699635757,0.683896226350801,0.222812923663203,0.263210910095188,0.772165220884214,0.569888751205154,0.406724547572007,0.485526691255340,0.550149921366517,0.503610188884718,0.410770190315476,0.262077048073210,0.548724071180917,0.936429611634426,0.679338358009561,0.677597056086256,0.579081318558885,0.708961360892493,0.532481376983392,0.540479915893334,0.605557830243501,0.720018853272613,0.489900928446913,0.617938373510291,0.322247672927311,0.932128779456925,0.566856796485951,0.509799996087534,0.0808558590920206,0.688165711963459,0.981263226259169,0.307364619351880,0.409941315480277,0.394908119916654,0.0870364817097871,0.785609361864031,0.417339952343353,0.509452558383695,0.285586024515059,0.860653963749932,0.852020218358670,0.290524384893508,0.689351410904129,0.259273763273422,0.197991750840895,0.782525739748962,0.457041531117424,0.101960717890236,0.652027867414830,0.258877514407781,0.696011771454458,0.267342031133790,0.971524356386167,0.535832848714632,0.656674377547944,0.278461568216001,0.308730566912978,0.814586876619994,0.816229846995660,0.749545587214363,0.587799583317848,0.411372509529105,0.613087789004647,0.790327012498814,0.511703509681334,0.763573795308846,0.252580209972228,0.106631811660887,0.517455875279201,0.575687640136264,0.275936614873201,0.809483869023878,0.408998662487792,0.834680572319798,0.439364398239891,0.465979227219941,0.861385384099904,0.486514901238715,0.579715961697437,0.449230872082016,0.492228094343150,0.168719592840604,0.436002958202235,0.133209743391682,0.729656125588111,0.585336709893552,0.316729660725237,0.625593414156978,0.363434480082339,0.0809881801850197,0.174413879105697,0.402503000017446,0.676002060759490,0.453287774458471,0.350062626030886,0.490479694674803,0.486768376747454,0.513252643852933,0.849749172398740,0.755698313960577,0.530588262144751,0.716948616586705,0.207125661187399,0.312735417258249,0.545694399138879,0.392089416899170,0.296246916059832,0.249629299707436,0.419233009582347,0.312245380872980,0.821860229476244,0.404710052340740,0.597402623658871,0.587032345305736,0.812986432186272,0.664256629757316,0.634240202380232,0.459975815695675,0.368495309160706,0.659086911620958,0.846665278907995,0.259639638389968,0.608572784324280,0.162629428424771,0.520510043689396,0.611678755086651,0.317829907687203,0.486995223768424,0.356960929768289,0.459070406789612,0.429703556957817,0.466703875013907,0.741129226935220,0.348564113245766,0.656030799794811,0.452476965925515,0.373889114259107,0.499346731752522,0.530395841067678,0.841546345165290,0.401274695126561,0.399060137395743,0.379987292200816,0.310745812171172,0.717573541617206,0.244819876347399,0.605367226137452,0.859280352819533,0.687097514192762,0.0947022902463876,0.150847892493921,0.376267329516757,0.122186670623133,0.394794970420538,0.563482113802674,0.664134191654255,0.827278354065515,0.426035940927853,0.108017492103443,0.600343301431902,0.822306898870303,0.697260396857124,0.230210436342959,0.745166236372648,0.669934777703148,0.524811018920274,0.670721123825102,0.380745015848693,0.362689436878395,0.386355024268128,0.420102963018266,0.521135780467031,0.689705548747271,0.894379399555126,0.188085725933225,0.307650867690581,0.589774869526202,0.456134875869845,0.466855079745235,0.486922739087515,0.926046679625398,0.425561745749355,0.182316067442738,0.516062272446901,0.0669297549405595,0.269256431128094,0.665227231118599,0.416907126314582,0.718045600187032,0.612626184405446,0.676036110790282,0.140950754765180,0.608827661347546,0.221873654339922,0.420928391774413,0.768345401748168,0.787512292198621,0.465626322681713,0.864175803780582,0.421796069194718,0.241762959521874,0.710204035724470,0.746233427927749,0.628032934124080,0.369389390285640,0.559630313427777,0.332167411480271,0.427152490560214,0.668495394981887,0.811100553430335,0.802141023607157,0.690574355821524,0.179145957197277,0.703612034510557,0.445201200249741,0.425165369520736,0.296516814896488,0.384986301941279,0.739717159683978,0.486544727247584,0.328975998676828,0.728239560092141,0.561221195881917,0.569652319509760,0.256758963895722,0.820743064011934,0.443016834259963,0.355356280107793,0.517492369916970,0.303921136285602,0.583804249553091,0.868458293437907,0.362917457870873,0.636166379367863,0.642041762268348,0.564541451784192,0.615862983946781,0.243766390855327,0.546000335265867,0.551328247882883,0.473376469551149,0.402549527517044,0.367215514985479,0.851806678824101,0.798313398396689,0.536820334620289,0.558382599475392,0.739538462089826,0.104234742670688,0.446995091138390,0.197273418512145,0.290922283572028,0.969774590343473,0.141562824554150,0.319580717665519,0.554520665968879,0.454264501767597,0.675223053195798,0.457954987679375,0.618608493495308,0.332937415066279,0.611415037223917,0.0899218996866816,0.780049316996652,0.331864359430993,0.398209591308207,0.666426830788851,0.451601214146420,0.102405833286827,0.716536733818974,0.177363196367170,0.750495584814889,0.751129063700650,0.657543431680479,0.388619201554600,0.445889081846643,0.551244946122991,0.358828535699185,0.331171390557415,0.579517635107434,0.636003265691333,0.479821120542193,0.643784544778113,0.605969150526889,0.908264715997872,0.458791825326492,0.306460258529350,0.742258193318057,0.764535694355801,0.625746289409735,0.666464231977979,0.477701279181470,0.664412733676189,0.337758654693710,0.870638923099408,0.804143469846227,0.323005129252369,0.696201875578515,0.736712750474254,0.641129801952631,0.595406297706771,0.777157909059262,0.339411797620674,0.577490617086306,0.587426601737550,0.291548551166947,0.889044217513248,0.656115563618123,0.460486820376342,0.559462899830178,0.624788675440800,0.156123777883074,0.260141611555861,0.517144511477388,0.319495322293347,0.279787091378293,0.960562311922060,0.520194009694368,0.247680423464194,0.356625194566897,0.482950634623246,0.383834267112407,0.434730349961603,0.950913780282874,0.555905129878350,0.333748975005195,0.638619879840157,0.582468665649913,0.687632444219402,0.516108711068500,0.389593529709408,0.534732718475842,0.812952074362699,0.291650455993796,0.407802909079523,0.265096266386075,0.284059207788547,0.499656468114740,0.611044923354971,0.831767124572093,0.758610098267447,0.149832458456125,0.717331060653938,0.546983098407126,0.392915310403079,0.783137157453319,0.482317807884524,0.371083988432603,0.445819635871795,0.460088805799322,0.463082479590562,0.525514015517273,0.699664577677318,0.781043175248579,0.615168800409355,0.557904552959632,0.246204172318494,0.199329444874036,0.289602550334781,0.217554842361381,0.215862565727059,0.498472583797691,0.451588506332963,0.741405132249295,0.382802228205867,0.561827234859743,0.575622499536610,0.633634809730227,0.370031971398727,0.179172794247830,0.786621572120973,0.449128575255762,0.601525651248676,0.175012894009024,0.478275547793494,0.396854663552239,0.829628088604548,0.360994837057119,0.541833129864447,0.788379054449212,0.528124457774677,0.785905357745858,0.890470677209279,0.643731196059926,0.783744750567902,0.248483289465206,0.601482824694434,0.558528934959312,0.295816322476139,0.662806758926621,0.669345146961707,0.211070659135147,0.338094388045392,0.145274662069591,0.543408392493047,0.742231947473091,0.224377590133844,0.721638413507458,0.322364499318242,0.712378184997253,0.465201558253519,0.462228170988346,0.361065208467060,0.255353011769812,0.711730260933094,0.396872795084026,0.579243969889668,0.0656107828126192,0.237332044675211,0.419065059289783,0.433250850651007,0.283372883031849,0.737069971150278,0.174804044695752,0.778511604599217,0.279933491216589,0.270150591406197,0.849600061976157,0.407733219557490,0.589055628785404,0.0731011606246832,0.462630741674159,0.344136040297529,0.306570304345260,0.640886343651772,0.387202736231119,0.386690567958724,0.692719899869252,0.389686888262890,0.550681271447004,0.628363126448128,0.661938126506946,0.545894047764992,0.644117108024220,0.313927460165061,0.367828114128892,0.387855827215700,0.544593075143821,0.578721977475812,0.821471415376405,0.435936716176405,0.491426887261703,0.300333811515720,0.296772302226411,0.646379495336479,0.649602904999589,0.574458268383767,0.663255343748992,0.223753139828414,0.366369724055050,0.664259936818540,0.417254117310217,0.494213161040636,0.352296152779060,0.418641152796949,0.636558035736473,0.679707464887674,0.541513195307512,0.389590041308238,0.514965814660524,0.415604311733777,0.410495244556534,0.560336655003657,0.584677806475040,0.550399934949607,0.549862432670334,0.332583048062680,0.330433404978416,0.219900542343866,0.620638395092881,0.432555041278806,0.706863074052164,0.330943431408961,0.670537719906491,0.657247970909169,0.787213196733177,0.632267027782229,0.561139598594081,0.586080860457160,0.391631876769901,0.255898614840362,0.135529630334020,0.851750203179732,0.936798548604585,0.707846537230003,0.235583561595763,0.528725473156328,0.311037104595856,0.249961405460472,0.705972355573343,0.585152214223138,0.456005367716636,0.0237046654910709,0.450499995503935,0.393778363836971,0.617099230148927,0.202204013649838,0.569010289270918,0.254343888003507,0.857620090567692,0.217864168745877,0.760987406535205,0.386795873313134,0.346501543209765,0.348796906135082,0.811166834920450,0.398576877837879,0.652349352681868,0.690604439510316,0.377935459042098,0.674249732841848,0.282015471105321,0.758080078892454,0.323625021771077,0.363939552559678,0.902009128863531,0.0816302274845558,0.610340943671577,0.455562904521078,0.826837048063893,0.523184088146512,0.708118453635563,0.454854581787846,0.462019831461518,0.698222394338552,0.354969613283164,0.593749317672578,0.595470819070038,0.494334373622602,0.277773981459012,0.298197293822897,0.864740809157864,0.821026078701993,0.301257623131573,0.658614245923119,0.454178588704257,0.175045501974133,0.757697505447047,0.515853968111410,0.457411714902607,0.672278584776631,0.214196848516464,0.433910542695917,0.387488932735829,0.471399052371600,0.185635476889728,0.572962161519441,0.919832306772592,0.325523026062618,0.229791218288184,0.787151653368496,0.771424221329328,0.576835813624347,0.636704194049005,0.656077893237650,0.348934086088941,0.262433024286847,0.369584248468194,0.951319092825537,0.418414750262515,0.720998649553478,0.245631029262482,0.423662138461618,0.772382559809354,0.839783930612458,0.0562125447607477,0.303142293760904,0.279495806959718,0.395572022939561,0.599618719539351,0.181989509064767,0.644591917043259,0.883308308689969,0.622461892802917,0.563019968518541,0.485202518043773,0.639370744348957,0.749576780265310,0.302369751227128,0.935577667066000,0.506631210002249,0.606520955539869,0.314857562226396,0.418508151913793,0.369178955405139,0.634133583883351,0.510129138494957,0.540683496620699,0.791268761875747,0.816526229183289,0.382384890200454,0.387685434854834,0.386080726012043,0.625453494066674,0.696933415549479,0.556255924576994,0.575461661127760,0.282286123027330,0.412683713229894,0.453720340970743,0.695773311788091,0.533735540706266,0.544092789060203,0.660935793224100,0.312867284806907,0.592815016477464,0.575053122109097,0.538875213063901,0.892598307513023,0.470662811422524,0.570627107827848,0.378104362334350,0.623929736648091,0.405988690459666,0.554334966802395,0.799075569142690,0.304743146830704,0.665425076346776,0.449161654082557,0.764025453382572,0.433669554090187,0.913286852312298,0.788650827004766,0.688391182804347,0.678506861570168,0.613176089628170,0.282473397708410,0.653246973596799,0.513057210193490,0.910517776068779,0.941489885469520,0.701579459461488,0.360412965524705,0.671352479438181,0.785007039535383,0.269929133208084,0.201729517482844,0.261910550245689,0.827476021056414,0.212974673557066,0.443353666499038,0.254500227139469,0.160600496306829,0.446844666046428,0.317078903559389,0.382396050717250,0.659272893833639,0.517995232525903,0.792430206692054,0.430799723748900,0.732628127730246,0.370725145148172,0.658743604140210,0.788598898041013,0.655914280465927,0.456236157579498,0.445195858550808,0.252733823583699,0.283227347398800,0.324780061649827,0.0695273606164818,0.513113676883800,0.425464950629735,0.387082124152297,0.297537268315649,0.674806102648783,0.616803002353425,0.631015209740229,0.465565094317878,0.197275381224851,0.299878740145632,0.568939112570989,0.581519926835218,0.573772165052977,0.532350100844336,0.539629989630611,0.307754410357211,0.735554550265162,0.640950481728625,0.419493015370978,0.607137432167231,0.544340281032087,0.589802945392881,0.417505614423258,0.417636505608185,0.375657213889931,0.512107992348799,0.859635255794693,0.182575992706073,0.341285849731787,0.316534598218677,0.267851352639756,0.919777150696652,0.378285827160774,0.673177128760229,0.346729867787069,0.304908569480470,0.191953417747398,0.569265449998530,0.695756837754990,0.438516679726649,0.241039831890396,0.333073241620221,0.319963258369362,0.323214209276786,0.518348724332004,0.424862554296050,0.604226541581688,0.229395189107081,0.628982771188431,0.391581877605902,0.420806245322311,0.732395954736177,0.233937236599636,0.324081924296567,0.442114473404419,0.749742808454834,0.452919067869004,0.701120974690749,0.668531703193333,0.928933447667383,0.213583049269496,0.704772586396697,0.372734368977582,0.407043991067711,0.874725924458242,0.776635219445635,0.282037253413290,0.177401135164101,0.414953811965830,0.740895637460620,0.596959088487231,0.952540283218529,0.290947561937055,0.490582581189011,0.715276867343042,0.708889858610722,0.377552875476024,0.694450806569243,0.540001952617453,0.754233652613806,0.761433615251312,0.599674338624364,0.734034319604591,0.531822399742643,0.753702667185406,0.895583255364946,0.434500046700714,0.414204504574659,0.553354930361461,0.216047553004838,0.400220856717368,0.552774248141760,0.506892327539126,0.210863434429523,0.621432359674318,0.854274353202655,0.229613579820261,0.948141738420045,0.332663071717724,0.421487961171102,0.764164693312309,0.190568713064287,0.468860178431578,0.247246313814236,0.771779807670700,0.530514284433326,0.713839317372443,0.557042562377178,0.647232291259399,0.294228576870623,0.731831958548097,0.324045976621886,0.272717230409705,0.579747424470782,0.300383544197912,0.518657378383029,0.542982385428721,0.387388404145472,0.195211129291086,0.673854141708681,0.491280004420003,0.250923231854799,0.391583915332119,0.496956951099148,0.651186573678716,0.341149492168945,0.296301438094079,0.877934973548046,0.276232458218256,0.149702591122669,0.748028393197067,0.698009152223620,0.371864828262904,0.303935911326147,0.343978049619472,0.560708834226400,0.211680933886169,0.228553155269678,0.595968853332406,0.532039778764733,0.958837226937015,0.312549011205192,0.527041712045994,0.590332514495488,0.529458682236494,0.119793279570405,0.593397486495022,0.611619941819732,0.425069501548485,0.520581825574313,0.474445121140242,0.602208568104586,0.220482919293602,0.545397189736652,0.163396802558747,0.636104105126090,0.587715160388741,0.262871393386614,0.776811651330548,0.534370700202349,0.623543697373873,0.717035990155366,0.509710968740697,0.103344407324594,0.744408105655729,0.458303199724587,0.578052462525735,0.435065296865540,0.576124141421500,0.528402868093238,0.552159950476210,0.340968763453654,0.269450356575020,0.493187582020671,0.509934637035788,0.367470847305791,0.335768555772984,0.735054177875340,0.375748876767166,0.517109200643130,0.419170347253492,0.378522424196491,0.321574828958102,0.744138052678354,0.698475653981789,0.496842835052365,0.238020460423952,0.305924327817473,0.358275167562036,0.671071880453265,0.726882045224890,0.320768350841590,0.314365943822639,0.247583619741170,0.326794884223514,0.732033603594197,0.448540942405229,0.553932257162492,0.246505088815157,0.154814571760238,0.624038449266911,0.189427948630803,0.477101190478792,0.230438272158760,0.0305139006743811,0.545863339750076,0.0222748548277098,0.768999502648725,0.281118650571316,0.351705377150966,0.738154840593210,0.630278134231778,0.455120603572969,0.474696908975678,0.364078237945641,0.259628793911459,0.440313656763510,0.548729223016059,0.258013486507889,0.588073954840022,0.245176897152549,0.499909024139271,0.921869946535675,0.111256135858775,0.169015481237016,0.844617871142430,0.729716897188937,0.753497570392552,0.493142522287083,0.376938421102329,0.823121819919377,0.445533460947220,0.781942015946070,0.508324908843686,0.457311822210140,0.668750699091225,0.510641038020515,0.409025127180958,0.750897998514346,0.358854175384955,0.657193177525421,0.399642347333192,0.706940259956111,0.728740086065975,0.449208176938056,0.256213967929695,0.496451945154290,0.670677452167270,0.373780899954743,0.584440445489715,0.890182883778997,0.669074122550761,0.232724896787548,0.761267730049087,0.648916605253139,0.584906725590929,0.132003935459510,0.297941345356110,0.0944227509967643,0.805220285529880,0.149894052861285,0.355000022342817,0.608030766720483,0.457627509508082,0.779351591635202,0.341488830178244,0.386149358990224,0.747692650345698,0.778915249773184,0.634639434095319,0.645526155711827,0.162347833386048,0.380619981240919,0.289851580132240,0.411988142362592,0.732941889168131,0.793405123055974,0.853175067269122,0.666114715580977,0.226167340294586,0.430944432106186,0.459253048849214,0.762781682204661,0.412204474996107,0.461493980389962,0.296138224431701,0.599702205622204,0.176090767905366,0.364755990540421,0.316711162025857,0.843560786337130,0.610657097877235,0.262403912223123,0.665032759901825,0.665913057141770,0.237146511026908,0.685718016141960,0.863904771203009,0.746456578729491,0.585993312068892,0.253533468161465,0.107723724724615,0.616818863609639,0.511002426003982,0.747909579640728,0.872775053036479,0.218632225750844;];


%% power-optimal design (Fig. 6 of paper):
x = 100*[0.0606654728407646,0.503850949171332,0.774962277145302,0.645746053957645,0.987964819145496,0.587906504878726,0.519846301015097,0.743296159863838,0.226467634372760,0.508686006567977,0.948187191819044,0.0992641978231845,0.753388920095296,0.0783368321247264,0.751917819810324,0.755589684974373,0.631156609100077,0.991652497858712,0.355852192879319,0.00269998031156371,0.547497353756882,0.928176469170936,0.956963783884183,0.431270712577380,0.00631961215227572,0.640141173655099,0.0659743188994847,0.605187582949431,0.861254008232837,0.305343456345089,0.300923613704400,0.864977489670600,0.381878383913674,0.152650924680724,0.0371797921517705,0.554326621528710,0.208552496848408,0.757273350846335,0.453954307385520,0.887235461600294,0.638326945079973,0.965658187928017,0.967164153987731,0.00689659697832190,0.647172639637768,0.969184014545046,0.938517875162567,0.674303001531687,0.802040180202335,0.806693485493224,0.364142231742817,0.553009511799528,0.187525416605396,0.182691645099557,0.670509818468102,0.123280593017826,0.923321850928330,0.00784397006744253,0.769689160132163,0.335458260829282,0.237619725914893,0.216187965658408,0.494616839674404,0.723398979447006,0.607372594606830,0.681942632307420,0.719109844031096,0.133912250724960,0.798251948969270,0.353737878311624,0.521726923809807,0.243968765978236,0.0436572301726296,0.887872610621759,0.761995265748401,0.721173916430643,0.776124763193940,0.641148972789710,0.318922306336710,0.456968007053873,0.593878662378038,0.0506003045201124,0.630635960803890,0.630786107792977,0.895441375668467,0.350413476845342,0.901955257222128,0.412538921505448,0.776133453151689,0.505597824624058,0.101502553899110,0.364774302681127,0.629419133347938,0.228068510156746,0.658082068848911,0.367050030426670,0.485698400031492,0.563124210731132,0.327728653242064,0.717684648777328,0.395835112660085,0.0551610102951721,0.162107876889363,0.912309541355366,0.273228340521563,0.160617407817707,0.323538101138053,0.653559709916576,0.249078870137254,0.444847543144312,0.00456739981434473,0.336622769372006,0.994046722432976,0.629761042015474,0.292353017100038,0.513166367164989,0.906645193019155,0.557661796679338,0.185680883862108,0.646937764279198,0.430796958490939,0.171828875322428,0.134347507216227,0.807630912798385,0.813970183522992,0.912878658821569,0.238811403153234,0.189554584995378,0.221345672657769,0.232806865511274,0.578827742989952,0.865836593922194,0.300652529762271,0.421687822839137,0.853475903859230,0.677125911487790,0.372995497300317,0.910294008344201,0.115160602888890,0.0523770042291431,0.673499822069766,0.514962262760173,0.492010862821021,0.773474528534991,0.230609743985850,0.788516402107797,0.608949192525737,0.798864949926708,0.569048142111984,0.0461614754127612,0.798257718243874,0.517471053937982,0.704481564411615,0.646658959556130,0.799474878990581,0.911133192615881,0.709890807879644,0.0469940542645236,0.200015899486686,0.924131767708558,0.654131655498608,0.108139706380243,0.698695637510177,0.143573314847112,0.620918358716561,0.492715409731292,0.192937096436142,0.631873652879655,0.678538283711935,0.213766563072904,0.962765962958809,0.424600017754884,0.974757576073658,0.0966866797112711,0.193024221441430,0.565421410716437,0.0592760619216610,0.0391580135833536,0.447856375507005,0.637349354297776,0.779456604156907,0.222318177664935,0.800396968240449,0.358700813382341,0.203588800192936,0.829015040261790,0.927783437825039,0.418703161033423,0.456566308114309,0.221090576573449,0.803634761551410,0.153715557585637,0.822542285473059,0.231765785893351,0.551740686227431,0.137898368690444,0.166377846931310,0.875873528494227,0.902184370792899,0.307987814184212,0.190254000817866,0.940060926389267,0.624830368354181,0.545763433611161,0.932255503473027,0.374217690573896,0.391147029492348,0.154757536280983,0.744051177608602,0.620937247084694,0.142963689657139,0.595631865723696,0.334492985898150,0.0836826636282002,0.714363874103973,0.0883233065726029,0.824480493104697,0.199208585653971,0.0980566398593400,0.969017606025820,0.961555101653233,0.902331710760498,0.251858354503047,0.131230415733757,0.831115922064186,0.759656808230414,0.621887596465846,0.764408560962140,0.0844801562057195,0.660933396237368,0.836102584327214,0.157804584316817,0.106478171095619,0.369597887921352,0.966057561598506,0.198372633982231,0.571629534334008,0.963049540902663,0.0449275685424105,0.568889467913218,0.364639000611283,0.880680179757160,0.947381463192628,0.699860891439791,0.0450768415644905,0.725974013211044,0.339414038721743,0.424063639187302,0.253905993648121,0.200981599653596,0.564765001993605,0.399350759377475,0.464704382761698,0.913127210174499,0.797807972711067,0.971580959858382,0.856746948586698,0.789892321997634,0.908346937371190,0.835936766710268,0.139395625835054,0.506900088852493,0.962281663777090,0.942496576386943,0.730045841416774,0.665238053607966,0.703441953555101,0.414905463836248,0.220683063157662,0.829431000998576,0.604529834904559,0.260799029343849,0.0354507913076447,0.0991225147954498,0.193382747799775,0.660679229944987,0.262286893060795,0.0819415766388890,0.892877128040859,0.890581757234472,0.642730197137787,0.336084267337285,0.721849481641507,0.511825046502675,0.324756352970095,0.412733621705040,0.0714188963154838,0.813127348891219,0.557730014791122,0.0259260595278107,0.793947221175537,0.241057213087153,0.821563620518114,0.622599891226845,0.722561191906488,0.693700145128870,0.0105090474035675,0.418906927120790,0.210732966258096,0.527803583233369,0.844943686642937,0.0812307226395019,0.275043270453856,0.810354883877256,0.461087232499687,0.820230958309508,0.720359982459418,0.789152964602841,0.200788184383568,0.187059223347683,0.751095952498611,0.282876238225592,0.765744492086717,0.122822946360077,0.119276734685702,0.503539188205069,0.438825950972689,0.705943993362977,0.827202715214414,0.507538107975924,0.623831779787422,0.610529723416545,0.308246907567211,0.432192823980639,0.978352450130762,0.388011894709047,0.488597163981866,0.631897649623020,0.331656152378209,0.795889373468476,0.103436026881378,0.508184959699765,0.722410361880063,0.420847505430447,0.0292488463882121,0.733642911299817,0.533003382914118,0.920738219634525,0.0440511408365614,0.163106618981953,0.158528995756631,0.0202840118555333,0.982938219217790,0.379543007721064,0.176229465895151,0.557014035550827,0.756129248501360,0.652249029968105,0.195039550167113,0.113227547599060,0.753858683214705,0.555867330792179,0.668762375431240,0.267599007019075,0.524944342270005,0.112288571339247,0.0107403975477522,0.467598907520370,0.759868634490906,0.254505009745118,0.280377615903976,0.384485987725283,0.706075237030032,0.0906943753273809,0.741585576585771,0.0720548931367253,0.461396436462173,0.628223772181735,0.963636342270135,0.574243195010361,0.692092421071548,0.134345230491410,0.673676039907145,0.439238592643685,0.746703960484228,0.569036117000528,0.682138573304204,0.830152834766417,0.391064316028455,0.405278907163773,0.872085997831287,0.853033408739333,0.546853053361429,0.933655835436086,0.606994199006855,0.273629117044618,0.205689474889477,0.687415797369609,0.618562266357492,0.862651586728813,0.0719107971712355,0.837519326958941,0.307606537683170,0.632237385607130,0.582681374109384,0.890330931816435,0.273038065423104,0.00103584749759056,0.337177519603844,0.174751155533474,0.742456439631733,0.608976040500054,0.110438799843132,0.346332207415713,0.0585037562749425,0.519599974623062,0.0890235415035700,0.495002474239916,0.160170395529207,0.407914028378869,0.977184270724182,0.342392616334948,0.837585564888297,0.483505780474747,0.844787719385439,0.790997220687737,0.436884938719681,0.309920665280346,0.999870437325894,0.344521195442430,0.876200336380266,0.566459515467962,0.336499246555323,0.706555955959425,0.545517908784077,0.771564756265470,0.621447958680416,0.0268584695419254,0.147415116072610,0.612406292409108,0.114127793837270,0.700658364959606,0.186333950419180,0.525628035337498,0.0822384274109423,0.679703121518743,0.499166431747805,0.700117824900285,0.0403473311178385,0.372136792382125,0.392045741635115,0.0746168219390364,0.937652955184227,0.839734432171829,0.554216888758465,0.334367614898412,0.362216327121148,0.858484394789553,0.317046046163802,0.118716842025610,0.152143545047430,0.441880712906234,0.487499336277455,0.803352062147055,0.522898731530303,0.0131101933620962,0.807167437432725,0.762006709192850,0.596615692358937,0.00732339482904643,0.255833855547866,0.970421052635595,0.0722550713986115,0.411635748751290,0.369111370625550,0.930486080465148,0.984462908279837,0.834649555166800,0.803401342422522,0.197394890287437,0.833256463064886,0.0647317592155430,0.350070720136924,0.729166954368052,0.295005712150804,0.541146597375268,0.291602236995348,0.635344650064910,0.163035483990115,0.227108546383508,0.439743699987404,0.666052325083562,0.734853112364867,0.770973264993203,0.198320863315977,0.576131588313362,0.619131594199765,0.835076296704052,0.753405408175167,0.326461071485636,0.371979625909383,0.154211354948391,0.532803468137457,0.148226858228676,0.104665863422908,0.801394920216650,0.668384667694760,0.493199866313327,0.893275631940237,0.747481785651766,0.499070258355241,0.549821130776462,0.654990729057481,0.346723915462161,0.426741675203527,0.0446298057613643,0.984904826290693,0.0629776957726110,0.716130738997798,0.398084382060791,0.807509348699323,0.0722772698875365,0.112163197012574,0.171374868495164,0.0999709970398436,0.188890479716214,0.322084789027373,0.0971122222096068,0.656245855591825,0.0666817669917336,0.683673157636158,0.158308170568348,0.567045410204270,0.549811256801769,0.609330729484145,0.182662536111607,0.855981840614065,0.0313603101234666,0.175038397652914,0.266069128795539,0.773998038782573,0.617044964006462,0.161055739894640,0.480762749344369,0.203674984611397,0.251378020088091,0.624589129877245,0.951362065667343,0.348045315814540,0.658902937801722,0.944424108681541,0.145748955356502,0.936552304197651,0.464700078988930,0.937489146662569,0.0737791438064496,0.565736917191726,0.867972866920226,0.572930299481293,0.0437832306295021,0.457070050564616,0.227231826843379,0.714503339476730,0.925723841190911,0.908332181652908,0.509471321845114,0.435365181139330,0.0436872483138600,0.0928223931176193,0.0160228488397017,0.825416189818387,0.721237393626532,0.927044861712020,0.0694904201810773,0.756136996856756,0.829952130597957,0.844960970294713,0.655617748784868,0.705154378303051,0.838572560675765,0.936791593852904,0.288532582810599,0.501529881321894,0.744334587727896,0.850020745454199,0.294999602357055,0.249501868791852,0.0608821940049985,0.832673716524286,0.163239447642904,0.756098419165176,0.0824761497421732,0.198383548206521,0.840188725227088,0.0602954196510912,0.370739051082789,0.996195299325044,0.0753985536731205,0.696009957113621,0.742075292536668,0.648923513662033,0.887383267346878,0.180984851489412,0.212702910434751,0.0774336781538693,0.908357737777182,0.903633077140067,0.397700461386803,0.732379149135817,0.420748284581387,0.794741528590954,0.565175849305725,0.362078758337147,0.719435228876702,0.462570839594489,0.927924419996308,0.169551604654288,0.576153841332476,0.296675591115987,0.649392733853450,0.216169791861005,0.976713399487362,0.652377867793476,0.332943180148155,0.126131457141627,0.0429186787927088,0.271902938495660,0.840494925555714,0.658330883603883,0.686950708966656,0.284259802710506,0.647131329397542,0.748976772615983,0.697115897720913,0.473382979938124,0.0384254641321733,0.520834711795738,0.199229146320811,0.100774553150481,0.505284147957335,0.671002695306294,0.812314468737205,0.756037998857303,0.584131979339228,0.854574265459254,0.829737800620967,0.472593421953803,0.556917103468162,0.0921767544497798,0.232625955355135,0.850378267587244,0.0713514310173119,0.273187947593856,0.387289341456741,0.227431164163089,0.757605808259245,0.330454618893340,0.324274245586687,0.917362514267053,0.189780523023329,0.302563237388223,0.192592655955652,0.888585737297841,0.0267260156867966,0.851566224233818,0.911408840756572,0.871193085448441,0.0200133453638428,0.478564624675585,0.284830044277099,0.938616350263646,0.171301213503536,0.195837831423664,0.0297964487526595,0.910713181619230,0.0152983094556945,0.100872463295762,0.421650122110718,0.988084557425391,0.272964934781995,0.0816009671877161,0.272736205646420,0.721498816980063,0.578362964519233,0.373716821822520,0.633286081983922,0.648501215971911,0.976436583119746,0.478335275409042,0.452133251890274,0.329252901323403,0.0818347489183365,0.426373412069966,0.440719363420440,0.164613459232131,0.199042040638478,0.950008756033111,0.776576579430784,0.436995743979123,0.567275381520075,0.660228475436665,0.227835138682975,0.491378889646054,0.916275131817164,0.883181821665921,0.155894374950823,0.0608030815634345,0.290542076323608,0.791175831378779,0.222633217151207,0.864632929470379,0.719454230737792,0.540430128306595,0.0906115377875941,0.437402731950889,0.501474816816569,0.0174778979599882,0.203857117098436,0.747339906621082,0.527136101947654,0.447876906036050,0.529202974012667,0.678341199387231,0.131138790041567,0.313022216777475,0.348091519810618,0.982357337213505,0.0392947167797474,0.0140961670151145,0.741513280691360,0.0337797482908844,0.384664498780518,0.729526933161253,0.446829107639655,0.225460270967715,0.767521396496982,0.464303418120627,0.866795274327531,0.620595949477244,0.759167652169357,0.454285077502444,0.298754553893599,0.645836058320629,0.495546088870642,0.447896115778594,0.147716511292621,0.447874325994960,0.805993891917466,0.203433782577801,0.524603635449107,0.661294780373557,0.744419114477186,0.508542159484173,0.624567828884978,0.865182058770239,0.0544078231784478,0.130935376000805,0.619561526396601,0.839448128423248,0.343337920142482,0.154187692393644,0.790859719397528,0.849352396722012,0.232148427901131,0.832209298252761,0.571672332013705,0.311305752487211,0.964103182783981,0.218176682816983,0.604226183033460,0.949241010307199,0.872737247640368,0.814611680251432,0.372789695698974,0.0896004807808923,0.709128471892401,0.252058352838621,0.535405223085593,0.510519113136211,0.994680583996793,0.382596503445547,0.494419373952683,0.958152066271868,0.578007152388872,0.658944000215702,0.428771032438569,0.643091521459870,0.109857987435903,0.228771587566322,0.986914965940052,0.984135233574871,0.898177622270228,0.431333814966510,0.116396274550047,0.418642805701170,0.182785971331393,0.897451316056837,0.821735052942285,0.245730607008621,0.584068566776553,0.266613849082928,0.944968629247837,0.0586117771559920,0.858299319527656,0.484584461933984,0.465086334541085,0.640864455752423,0.897254003649094,0.974318843021459,0.146785922454136,0.773390281561496,0.718103277505399,0.998401501971112,0.435786638061440,0.0495105412977854,0.0938271782511314,0.593827164462401,0.813656157129355,0.217936899399917,0.00287142854923805,0.293637695611928,0.433676584611673,0.828214653395093,0.121291057858966,0.0788569291412816,0.206573060388778,0.753113783453497,0.978773714467482,0.388408930898112,0.352212899562149,0.747447706715093,0.508139300478897,0.459789740726926,0.704842416730648,0.976950419598528,0.697745563205320,0.0748338227412656,0.359031994944370,0.883008052875980,0.231911035352135,0.439170109547991,0.916595718504070,0.319230227177298,0.528388467904027,0.237559863932409,0.714578963350537,0.536223377431339,0.472505423854486,0.221051352728035,0.745009908081877,0.439090829438752,0.451377912300358,0.838316058908649,0.211274067761108,0.846604760821582,0.329676650044452,0.597683558722375,0.431189808066449,0.0880839257973911,0.0276062490850676,0.462379217247383,0.537109883535743,0.357995226530870,0.629147581460837,0.667551162580257,0.0616443525900499,0.118204017140068,0.300682513663063,0.692094940808985,0.316599414186702,0.360066058737391,0.317779347240197,0.944415278229248,0.417064278496712,0.430007792001335,0.0610784388739082,0.754337677012405,0.818197886994121,0.280737268444557,0.254262804005424,0.853701081869595,0.607695915929466,0.728051202068257,0.165527025410572,0.459796413430840,0.492395233869164,0.189529360307995,0.264130271023153,0.405138579869289,0.420636701919833,0.282790383199970,0.529801249886405,0.00124625997462546,0.737924589876750,0.508952689297899,0.887573386679868,0.597801526167769,0.542356379230605,0.746607068706396,0.938919691131338,0.260717762102352,0.740536865206107,0.799041007305511,0.329076357495325,0.361230723669891,0.0131137881935440,0.573621126744600,0.520764601079462,0.111532067957240,0.891537008902763,0.623908900751057,0.740059935153957,0.554319072071270,0.742706500209782,0.400914014809142,0.358574945720604,0.0605002637072897,0.563576431611969,0.172631394325067,0.0814187925191406,0.655956021993008,0.537463994769698,0.463256885630492,0.754340601744618,0.521308670558580,0.303097468656534,0.793147056565320,0.584634494531794,0.0859540869824506,0.615115111436474,0.106157710510438,0.754510277755821,0.0946554403253411,0.603575115573075,0.478285733165439,0.0649896485544931,0.993269115974207,0.468552063913347,0.382148500697265,0.285481763096424,0.415066231403474,0.661256365529216,0.147066857488698,0.844193070824947,0.0859671158149652,0.499552492185342,0.343606508996059,0.613782176652300,0.0494165307603947,0.501971638619612,0.149666203878713,0.445175342641119,0.102510671644486,0.956155081864704,0.0750972492581851,0.828562759555727,0.208945586278701,0.442440703273942,0.442198321522483,0.365383244723784,0.917110842431152,0.246930523338844,0.759236305456030,0.981245749114371,0.520934416253465,0.157584304870730,0.0504528804763504,0.678541353898227,0.880905935459459,0.0349805538292605,0.851860152061049,0.941510276264959,0.993002549221109,0.754715247537286,0.635786606863884,0.173122576101183,0.144541376856254,0.304035350240681,0.931800164153232,0.612270865734855,0.581105846845366,0.533029939104409,0.237042558380592,0.376336484037946,0.401266804437045,0.274845294723601,0.562438308461932,0.0852916444438139,0.303921595627259,0.349571648262912,0.373858766504417,0.601559062803109,0.0569484822848962,0.0219705663829058,0.472597331539130,0.610993937993954,0.648309106279467,0.877232518973170,0.638599644643486,0.0874791334093666,0.880798096167014,0.784551592787611,0.293446378228229,0.154156719655691,0.121966116501836,0.737311664376495,0.874915712402420,0.498740327932324,0.320497513808549,0.331484386252657,0.0494258704902489,0.402491337694513,0.813581480531107,0.901848729603419,0.538458029459819,0.764530078135980,0.943893651669752,0.811273817579244,0.150290084638130,0.797137931241649,0.839417349166796,0.0290419654728386,0.279424523557271,0.553781327798711,0.262247419530479,0.0669057311726830,0.845116482836867,0.0562221455449646,0.984918749151428,0.00757538477516673,0.734518355771162,0.732478289105906,0.173455215915122,0.931951909349191,0.332716408737665,0.0634274720668449,0.281120451896146,0.582882825455603,0.410796465809559,0.955993012164846,0.900057319471085,0.565185223665220,0.278288955004676,0.0487932627578954,0.853626946875422,0.983504136080067,0.215879347169235,0.284251590761683,0.0553774793293292,0.958347136995505,0.201512527783785,0.752244411891976,0.860589345215702,0.754906208278008,0.505280493360007,0.611973771064689,0.718289572494338,0.178746017837942,0.191799283738202,0.00139440200050611,0.528717407759962,0.602252130713329,0.326406724624256,0.370244717186018,0.952070451948617,0.543131151154631,0.858808292074245,0.381676248598605,0.934158648322917,0.180861454724513,0.483858762918504,0.195626666955952,0.707831915265879,0.252097615212682,0.290591819947831,0.579070667384726,0.531944856176695,0.196470100488823,0.911673109311357,0.941765484946217,0.452060844877069,0.254553726785702,0.874983227723685,0.117131447578521,0.737900513695125,0.0484224724379477,0.917899095462829,0.523576473657178,0.831824997906346,0.859091092808264,0.845200722530317,0.760929617352956,0.186702651135654,0.116752475220754,0.644472660165734,0.635966602155268,0.250499938291336,0.368113861056969,0.328860541007948,0.360995346067976,0.272112152578859,0.388591812524899,0.474532277813706,0.268349425588716,0.560545888456153,0.160957916062900,0.626645316211566,0.316893291774559,0.178591501759674,0.382344773702868,0.907483226685094,0.730538113165090,0.212980146743434,0.568354546574548,0.196390318511890,0.268330094295610,0.556270683807558,0.477720672617783,0.457774736376643,0.708456005412946,0.921648240094441,0.423510177791435,0.392711014386584,0.141115828187580,0.464271334178139,0.429260957825530,0.382530611058764,0.511625506688160,0.449900774546566,0.554376324287193,0.741023614487506,0.442621683031108,0.786585700120235,0.629384086053971,0.747005834252103,0.0688724843185861,0.761608569380894,0.385871970361193,0.515202549928026,0.622164339633512,0.443142654730551,0.305753390607878,0.282792982424847,0.756914727987972,0.318805188458862,0.925654467059203,0.682384028755700,0.764304332437662,0.949247510493899,0.610463003333667,0.0393715270033600,0.0101682220996355,0.885530760305022,0.639819944373091,0.325379555970180,0.878226464596256,0.514751162160097,0.263625870145809,0.896000342469951,0.714687007428383,0.0901134925765940,0.475195570771428,0.505060007194284,0.508484573511096,0.378319102075328,0.0551992341639309,0.905304684906811,0.242101742933154,0.235624099637883,0.248953658480115,0.995854103378445,0.818777944316688,0.392463484725502,0.791739192861209,0.765650046334010,0.301456427636027,0.842810790798716,0.176790016397226,0.415154024719876,0.627046320282347,0.395963142963305,0.00471766114697025,0.0459698438427612,0.492522605676914,0.0393097138801646,0.873459898356755,0.168800738457287,0.911844782254266,0.986696168930844,0.366099407108755,0.0586922394810159,0.792548568970833,0.258359521200539,0.969518974044063,0.000740756290826372,0.497964410510017,0.791500127475555,0.493628972790885,0.579713922029621,0.0415303785851976,0.165777202887838,0.998979989953935,0.814646421793477,0.183271885751669,0.220370135744792,0.959802023681760,0.353624091802973,0.237850351746572,0.388740768409015,0.193027471669212,0.218478812515250,0.990987965739849,0.679426922822598,0.412837140533562,0.0553810225828264,0.103091729332730,0.997735809372736,0.00625449584227467,0.926702744761308,0.433621982805542,0.383350986392014,0.591607008883442,0.273787436115285,0.338890908707686,0.800508783821621,0.256980265494613,0.594157853986342,0.548482308656921,0.254450903486047,0.0865467774503665,0.657942166531642,0.481774963249555,0.977038278314905,0.813245824592205,0.716819289741079,0.883005242215278,0.642052920141891,0.333940656220621,0.933073050328437,0.538801328501369,0.892064980394154,0.948926946440123,0.646106018323048,0.711762559508148,0.863194167454993,0.586231263871506,0.0768578329305656,0.712126965390153,0.486297682011906,0.553720818334115,0.136421388780216,0.615870410113623,0.780512402796707,0.0422898492631681,0.359435593810037,0.460183364587812,0.141664003207780,0.761982047611538,0.814110913055667,0.0769142222611468,0.755010885618359,0.279106401069615,0.663068749886208,0.911693742913996,0.202058366823360,0.0732245799290769,0.844892310591143,0.971344938231311,0.557717340409133,0.763767953606987,0.424874926827861,0.594581753494878,0.438453400073048,0.0134453094967613,0.897633231736014,0.893380831383814,0.557008249159973,0.498589860931479,0.237694520632743,0.279649453422224,0.787788473532650,0.0408823505466425,0.575837921999848,0.847195208401939,0.0872516895970091,0.342144239298552,0.917461561764648,0.391330725327797,0.129964570034133,0.209373444909192,0.960395343709099,0.0612856437228710,0.246919494336327,0.0388921815421710,0.473018014191605,0.777522529498231,0.784439714247596,0.561964927818880,0.203016455111195,0.460179561965246,0.692493631773597,0.631760380458838,0.818867624319657,0.996092687979609,0.941590425607592,0.341382099053934,0.254412912461263,0.643372159988456,0.0874706320556217,0.505401702295370,0.549408715002873,0.527950009008258,0.235870234522999,0.00531467926925922,0.196862540330779,0.747141559082029,0.350425978360019,0.655910120291797,0.465566416952712,0.967189809382298,0.688753595969390,0.202527526558882,0.761737061742289,0.995585620795800,0.552944297678557,0.0472318080511314,0.654417984896402,0.113417641164667,0.432975421304893,0.576336768820163,0.0656946989794220,0.253680855729663,0.689518745583936,0.952940518712448,0.820235450054027,0.0250095434980362,0.967738190081678,0.934579513528826,0.281041619084110,0.342939224574641,0.228488585570565,0.101284567232784,0.599761051153331,0.404473928211551,0.226506921735357,0.422972565697565,0.400594145901508,0.858579180336408,0.625848056883639,0.489619010432084,0.326147255867844,0.596986962892591,0.225246285582087,0.200731299072654,0.385901951076492,0.341076775176088,0.480785149437020,0.451934346625361,0.495972930693093,0.504115890926483,0.848973256282947,0.991532616704871,0.231768475867208,0.863441375137801,0.798789154365190,0.401232011136684,0.632649090424808,0.416100808107751,0.625381587984576,0.721605522519791,0.858247241145700,0.905219962291282,0.00888823788934456,0.844775054000116,0.377726464224387,0.644106596871277,0.410951419155749,0.785548427033487,0.851578331376942,0.701262072843980,0.924766798854958,0.967729729893892,0.768811775596626,0.418882524435203,0.477791488122048,0.145744708888519,0.497050193879427,0.569503522640207,0.695254729589370,0.147117725154768,0.414212523940710,0.994705394838828,0.279201193844555,0.192824925308998,0.645010908709888,0.106248169040935,0.523376838292210,0.783081199963566,0.918817785457003,0.240906317048427,0.932626434213189,0.776594180333690,0.948766519031120,0.294928594260464,0.172536936273295,0.0151359339231847,0.0875871289629665,0.0957059376173524,0.476749966929488,0.948577320713282,0.947527295213946,0.247744211784883,0.739324414723130,0.120490923697076,0.463168519595006,0.578242610220147,0.814540311833853,0.591238584204731,0.659540688965095,0.826339778858366,0.417213830941486,0.163245748943386,0.910564978186938,0.443135358080915,0.532297209453076,0.863665563424154,0.357461306909913,0.611865511399194,0.858732012530024,0.235942553049441,0.0465440983245349,0.595660160644956,0.473860399492158,0.774771786510350,0.734271880021119,0.885618923938155,0.0660448033013446,0.965889129120086,0.591425929622073,0.636371345106656,0.365423052586580,0.0229408470921965,0.203005736360692,0.809664312373524,0.769710703237226,0.303086368007365,0.702063542039148,0.705079084785191,0.782980232691916,0.409985518511575,0.439764065857113,0.748181354870358,0.330065206542500,0.714532038093788,0.529897759621851;];


%% lift-optimal design (Fig. 6 of paper):
%x = 100*[0.648694014149919,0.747911775769908,0.885277264275411,0.493387412941216,0.859081451955640,0.161881233507952,0.594454777755061,0.833997564798265,0.413864998426858,0.646254295288022,0.931309583667506,0.160559924824348,0.294652421631775,0.190400906416671,0.641631606024759,0.0242884903376087,0.815130980120392,0.687431110164860,0.634750875437008,0.850943178449567,0.878158602324547,0.737901848573339,0.907413900770344,0.422749811428599,0.153028316959970,0.906564758182845,0.360741329026184,0.0800664779664263,0.666736670981706,0.00670637461725710,0.324071179525947,0.971487209886214,0.328884369102219,0.961431377142695,0.776672737381761,0.838661958332471,0.739332196879153,0.433234245240521,0.130399820011213,0.676962579135252,0.543238527529891,0.0408389685041377,0.241108671459769,0.773244568404910,0.152318477534710,0.909100978224191,0.590411432270401,0.688401922589704,0.525345680399379,0.424010027529237,0.717934931214901,0.950721365921653,0.717026168135752,0.894774103413734,0.311106094376385,0.433447137759331,0.296316518054452,0.742912092933354,0.611880697607720,0.324492648282351,0.600043010421577,0.654116938895851,0.613590778059205,0.907705460100381,0.661752747861910,0.0476970724043650,0.603227139756529,0.405808547294040,0.466978357223207,0.0670990165280617,0.672858202741730,0.576612140139993,0.650216046615604,0.920344653916982,0.768959617706418,0.450013264608964,0.320265792171585,0.156456203986054,0.433777408437991,0.378388494316247,0.907279729928174,0.962954048729989,0.638833421152045,0.466305554783268,0.767233877507960,0.745084089309336,0.217728314079884,0.122806291755712,0.474973204457087,0.226196926228473,0.808962333236529,0.727766941794167,0.143564533525200,0.124332053116113,0.805852021780120,0.609697121886630,0.185744519276649,0.867850326445846,0.836622642813760,0.772969471513956,0.446628823944456,0.167506556028938,0.533736538630288,0.416689138414127,0.935145213021415,0.407669374980453,0.240936860564376,0.0352183492656201,0.322570693816890,0.683405040943244,0.0574017232133928,0.406020691817698,0.822577033625583,0.359087356399734,0.829875788487101,0.797470543708105,0.717482707384152,0.289578945555874,0.245219288042012,0.268564678040791,0.664442462626722,0.0376433041949386,0.264538650864428,0.840507120015123,0.227163566118792,0.142700449793081,0.996857633266628,0.974402032754664,0.278743238461638,0.693602883742449,0.544287421387604,0.252208368361824,0.0415173632437226,0.409074263491000,0.286840572248396,0.527872920808599,0.706987904422749,0.735828956269665,0.525601008513217,0.667524809706767,0.485971502622094,0.277014302877944,0.0782098478979203,0.992330952919806,0.200772616668499,0.119680468781950,0.129214410194812,0.326407988847159,0.0275068922520623,0.158457432980810,0.406976494159853,0.623252707443994,0.101009456257920,0.819545382307682,0.489443278926197,0.525749209423424,0.405443129579034,0.0292754889730472,0.912420077767611,0.953919817379849,0.563363782481556,0.813262721999348,0.319845187810854,0.980806892491131,0.296460933901471,0.174131353753961,0.151286356162550,0.537282433114109,0.547242364989268,0.257635254297857,0.916128398523352,0.994469817817969,0.654403412271125,0.128818817894638,0.206161779452098,0.964953764255840,0.346294104747555,0.0319092615386545,0.565773512216436,0.731927122911682,0.0549385484390882,0.00540916995068375,0.976614354136697,0.0979094942688929,0.533431627205040,0.464049259207084,0.597464565733033,0.0381558476917551,0.477453084614600,0.418241035206951,0.926750031129346,0.985139067051498,0.318333815205569,0.279845734978443,0.292202044276595,0.694948137915494,0.325177705886368,0.921659895140727,0.215847966584626,0.0704370023591766,0.527824306320882,0.487022517311969,0.242431468332761,0.995483104239148,0.672448855506509,0.313730748255484,0.426363764585967,0.0806444849998035,0.171427233139603,0.521704833269553,0.858089027446726,0.746561676861799,0.218764508036279,0.876751220873690,0.291046387303307,0.253678309862601,0.227179706357972,0.621055855218939,0.574461962092291,0.0607076715191179,0.0844335553709778,0.0938736626209318,0.842229262083868,0.260865812754496,0.597053143696498,0.530368305950855,0.695095178115878,0.700833624831197,0.0406834186938330,0.854735093235306,0.182065582528206,0.370952597234804,0.239920994641283,0.568707087480859,0.451220099279977,0.748186379211162,0.570668926309802,0.323569466721094,0.0156555375917691,0.331405127245737,0.630952585132227,0.120921753830837,0.838210639904542,0.00101227475775401,0.208385205889322,0.163038171736774,0.703615494159179,0.493776003096688,0.704070716864935,0.574841626129313,0.677420247956517,0.439138365249026,0.103987697141116,0.116267021918230,0.107425348424001,0.406287901976217,0.897945140390874,0.454383312817563,0.805516479297666,0.909407310208133,0.0290716131003395,0.548209323514707,0.564271494573951,0.132450951013808,0.999792339541637,0.913489558134280,0.227063105882908,0.655062738011340,0.854419933144416,0.771795479306767,0.781137501404015,0.295740833883708,0.837651453124373,0.0165341617000771,0.366308013438079,0.834562167814318,0.793536975879023,0.693269836940761,0.314702585942407,0.355649066824915,0.819657190335350,0.951519553372240,0.764959555059192,0.807368312545300,0.209069645359305,0.640470739907496,0.523075515823831,0.569155298628155,0.989366784316573,0.365916311745141,0.101661283250875,0.0854002273768579,0.289286919959981,0.628603289456190,0.300629538766500,0.0211200715772191,0.993063290329041,0.113505893605961,0.826287949650323,0.909350298484566,0.211202193549943,0.818198499697094,0.107242607174060,0.867833457767833,0.399124085712836,0.00937296753290584,0.187655620101923,0.683600644121674,0.546897499003986,0.845454845091238,0.706197651811950,0.746950066804154,0.890943066029923,0.532161338102125,0.179331728920496,0.703547500984595,0.639487682041338,0.0858748566780708,0.396936629738423,0.902203214960906,0.205554432529254,0.206035022674776,0.948300580892321,0.810554763045905,0.0942391728823244,0.414605206213216,0.877848197717379,0.475199073062590,0.667323055603989,0.578806906627794,0.403884373467256,0.436499280565276,0.357047418336038,0.994925370353540,0.553665915603585,0.163243585013908,0.748781141100739,0.0970054525579973,0.704156712018551,0.555093179176373,0.436199522946960,0.190474150079032,0.846702084131135,0.249568780395749,0.349661319397578,0.342549541756036,0.735953712491431,0.477280506168158,0.105015119121324,0.331541766282482,0.596179982443235,0.804105621815245,0.751390452334198,0.585177334140340,0.628149865046815,0.0772383148330082,0.206986770769796,0.0416602351007072,0.875700763191953,0.640653930879489,0.935349786735577,0.914511626315565,0.340473947933437,0.980949847389537,0.375917180644851,0.216813222644452,0.432720627055039,0.723951961214714,0.0220510319290560,0.761032927594860,0.192984220950365,0.210965281110599,0.0703794718660889,0.182718283694182,0.974361361706414,0.175265207734794,0.586130475743422,0.358925630142312,0.390483165766965,0.177510339027058,0.223315648479644,0.378594400583469,0.968511793644638,0.872835509395778,0.375138569147690,0.775035128757590,0.601251645919491,0.0612599863868785,0.156809163604172,0.622833587646162,0.968567949774748,0.845345221985533,0.277739544438568,0.745186990542604,0.0597885522652833,0.341771965045207,0.541551962475792,0.181837878876206,0.0571086162846145,0.445400672331477,0.530189275056660,0.485344797503764,0.812036813365511,0.506314179458683,0.650435969298459,0.0993021729997054,0.438078392272902,0.745794830177579,0.0600266721594556,0.681816083220075,0.439089805218653,0.790966364894563,0.597365894718254,0.989866830906228,0.0785669949265549,0.200046686008462,0.819150536291947,0.206843809121078,0.0958246264862884,0.179760399793598,0.851848951725246,0.297123841608007,0.689805427511419,0.620493692254014,0.221547704383465,0.168557161376723,0.822893747102121,0.0366423988034613,0.136538715470590,0.856677876111373,0.717254422024117,0.0610960014194664,0.276361792568256,0.924820410514853,0.212700748716383,0.255501431125664,0.943493522142445,0.797537797954896,0.557717449786313,0.573760107171328,0.525996772597276,0.288261622992694,0.316332526325705,0.384038102632205,0.598763377903852,0.193523403993529,0.552118499864773,0.532219510308638,0.0716179890074502,0.611932669953650,0.780949928130196,0.0176905366820059,0.343738532822871,0.730431773040502,0.781572942387065,0.130674119532767,0.406875058072625,0.898250443847130,0.308888904431642,0.272206529975563,0.00812873168448447,0.250725866398325,0.660002417891144,0.784513704438783,0.456316216615585,0.477333704731479,0.136012463581367,0.625923649105778,0.406258570841450,0.438062979928316,0.570834566924728,0.0315184765214132,0.290619346927927,0.603928255198249,0.0205234666647254,0.577918365435950,0.305029452443131,0.571527926897897,0.552518338757626,0.115842308979693,0.288465644439633,0.666768389958922,0.712771029491835,0.588572505663479,0.413609041323297,0.918928379757872,0.0191247275418051,0.0960748415481625,0.410125591583319,0.0562523506706002,0.804682849578330,0.450970183683434,0.0941989105237170,0.587692607720990,0.518508122000741,0.0605367316604451,0.581551200365687,0.488886718556287,0.526175554881800,0.174069953644336,0.607253858217880,0.319181030450965,0.550459500000727,0.129503235052716,0.250850368923588,0.195986039217381,0.269053825322223,0.766392797931965,0.856419832292916,0.714787002099449,0.139696994608656,0.849231653010932,0.496152513928050,0.656171141072483,0.0515251826458604,0.349651900875900,0.472765709408665,0.499839625687176,0.322180025064157,0.874267243224781,0.0896817248253664,0.951784462537932,0.349492060629542,0.743887453463215,0.269037110740685,0.663430646112996,0.791593893435009,0.969931040308215,0.224000410600525,0.351782970313769,0.368490118108025,0.838597955756315,0.577368017073458,0.733925091609453,0.736800445754859,0.211876928116529,0.871978470364670,0.0639740681332923,0.134063446407671,0.591443375631860,0.198869497125425,0.292053103513299,0.965557948817995,0.256579803434229,0.615236196113337,0.499429797326052,0.0654846968112476,0.718541369810606,0.612754017583334,0.428677027981846,0.584228880593793,0.272872429156078,0.533265746611262,0.473821984183587,0.979304342302045,0.0939936549604059,0.620825698061771,0.654760852609257,0.711825130277125,0.385003160593043,0.129233464733706,0.335580688295498,0.654128203031648,0.104466650689493,0.755173616779568,0.659818301938658,0.393143829988365,0.839528387670064,0.863248678067804,0.821645023874443,0.290205809629351,0.924186806540674,0.143828310210052,0.674628962846641,0.165186765664920,0.0891509065831619,0.653008848546670,0.0419475845646805,0.690985321731611,0.975129358488022,0.707680779442039,0.0176952590489458,0.0145196036844672,0.460988465562317,0.0361630194187358,0.943332954482848,0.170003358999816,0.788753894385351,0.152360008523198,0.228417365705556,0.140826613192178,0.245804112064796,0.846776375302754,0.500150881310814,0.621580698897839,0.874342926678665,0.594475101070923,0.512753162808812,0.213685994186442,0.141332892430395,0.456488920659015,0.919970705665875,0.0545946620121749,0.344432101456201,0.680957555483547,0.665910088926426,0.159629956387446,0.695690844994603,0.937776958445600,0.444642899132149,0.0334339425446586,0.707778507283850,0.825469464770196,0.475682362813454,0.764551653057300,0.265840622659306,0.977827458596964,0.119240810154600,0.125851098522544,0.768844344933625,0.684409041345782,0.821819263381808,0.147585404236064,0.213095499045463,0.661913036236043,0.967675031705743,0.401786903058082,0.245555438875139,0.498638754462932,0.646516378784577,0.325257660395063,0.0806463803581950,0.948891757189516,0.453041698438025,0.474583935743117,0.581792937426842,0.597568222589507,0.673611797533950,0.416222347832604,0.463175983605794,0.663361205005032,0.0837729592861849,0.672738119461115,0.844294563658099,0.808102570913942,0.570095021076687,0.232333471115240,0.813210472054730,0.806300770450615,0.583120962471797,0.633007355070486,0.997069580464049,0.875477381733986,0.719011475529348,0.881009666457303,0.572960532388335,0.945399103085694,0.212679242750029,0.357046723112401,0.627758102608714,0.782155772661685,0.358313552641320,0.393198272804847,0.0660811262732231,0.629528656427952,0.720938350964257,0.211683696772006,0.177215907653467,0.505820745401510,0.646327312151920,0.391356157977083,0.297512083899676,0.631628676775463,0.875024664060549,0.383848779671424,0.869404549159096,0.418213237927789,0.0305268662340087,0.413708048538351,0.183316746500537,0.356547908004098,0.887543266201025,0.964227255566170,0.288279434430109,0.625656583277890,0.488666636274904,0.712804794920340,0.998564603286340,0.189133310895598,0.0977030797115425,0.166470318322824,0.285209204909331,0.838774084427450,0.329310601372127,0.780292882237407,0.157622602437012,0.395545428535863,0.953605550203969,0.370205228476542,0.467544005332432,0.137593531669974,0.932703663477951,0.0928468570960196,0.899911144614146,0.0356498883918437,0.780500231725770,0.337722251457419,0.879053390879995,0.941117924659734,0.724986871700109,0.793100152397915,0.849425895808311,0.670465946863554,0.352534884567607,0.374027851485494,0.152772745281764,0.0310078495145627,0.839005578704710,0.544478161862394,0.935835211122043,0.743820163992998,0.143772340475630,0.228490913701431,0.124807281037308,0.180721360552508,0.583801092808850,0.763656341577601,0.473291617801176,0.173905874493910,0.430333230629917,0.625795349070229,0.840148958230226,0.648032905563881,0.947066100003308,0.984697111739739,0.782726589722917,0.913599663379223,0.473588967375009,0.621802704759173,0.173189236034618,0.159491686146084,0.704734689460108,0.657645916408226,0.0395639865903774,0.524721368710670,0.0562901097914571,0.364885078160517,0.935915822241645,0.641081929782577,0.868768913413705,0.400181486980637,0.264365673494691,0.842447216216122,0.732131716932594,0.427084694423343,0.526197461197993,0.473364224465925,0.696139550820204,0.939711815983026,0.942327816889790,0.883914900214898,0.915098347600220,0.686198541429757,0.665379982562671,0.958180322208193,0.504552127375740,0.469804127326867,0.402828961750434,0.449759913777904,0.293794172233920,0.466752284048382,0.763639429233803,0.670739161032065,0.668509372383898,0.0214075246234396,0.878300137103781,0.339443679059641,0.403417580343664,0.685963586262384,0.445325912604458,0.501437119128234,0.719624823427997,0.919546458354460,0.133904816437797,0.473341815473862,0.890849404575706,0.195261202460477,0.869314957239806,0.244123747629945,0.480511341138481,0.165099376181339,0.211316555906124,0.879108577113062,0.251262167441411,0.437760331441378,0.261057646221323,0.913230725943451,0.728536313788004,0.100473942321039,0.942127978688626,0.678311400894831,0.516103299135944,0.574673869199789,0.698793913722493,0.315866358481943,0.588744750512102,0.307694849634632,0.209020111450075,0.0219135479864138,0.705467656774476,0.597268886400361,0.817791629526596,0.680514875980151,0.551751497494696,0.737975664739587,0.875030331414550,0.917706220228676,0.157194092665720,0.592803286329088,0.137858237330999,0.784483491263318,0.197381968101578,0.468880751470158,0.389730376901141,0.401417767895678,0.877606941836461,0.144298337787581,0.629391839015354,0.270772441278273,0.625689565196874,0.0520057644566405,0.346117126187289,0.647636667603124,0.608511351221944,0.211676520464409,0.822866792949872,0.429581632898377,0.728938287185728,0.239877640887308,0.125939829518616,0.891341104572351,0.626722406782214,0.606640321608618,0.180559318919691,0.372471367300480,0.603357056603582,0.501893719176991,0.331929089719197,0.670648225522018,0.688888995204266,0.938947480137490,0.255496921891911,0.369615624857169,0.477695776029705,0.623215109680403,0.553884268810095,0.863301845926682,0.193607064764561,0.307384902400508,0.278983952459271,0.648991001703231,0.153165306364871,0.932825276597624,0.346675147376642,0.684153453834388,0.0138680834349503,0.0933637693200617,0.378180204400218,0.976549313829128,0.587265463573416,0.883025315225897,0.172501712651171,0.445205070708066,0.508839042962115,0.717500077836980,0.845087928594712,0.0607043662729358,0.0971254396595511,0.154396321579268,0.787801466965267,0.569780222013529,0.720715993956398,0.390901984681429,0.801516281023273,0.433693255969164,0.241082427208568,0.0828988423499096,0.842374361875695,0.280098149356504,0.268560074753815,0.547436483720518,0.796726444200630,0.633360016443261,0.458922371985113,0.816346106761350,0.127424873306698,0.732721235346417,0.165728528975479,0.0418403905741025,0.132790967706690,0.768561163150093,0.990948036242036,0.812792052381608,0.723210590932407,0.158329179188973,0.708350834794905,0.750223950406442,0.486097522902923,0.112475382012327,0.570949092725041,0.0487222354856749,0.256100003348258,0.0236963040484552,0.729104622769174,0.823766068391120,0.714363850057936,0.162129111360767,0.481821520641065,0.202088469217491,0.311922826093238,0.245708543048832,0.657152281863179,0.0499774916596393,0.642760812467678,0.314904787693927,0.625178765548048,0.249862223674775,0.200944612278382,0.526929896739084,0.371595538481333,0.988854501791787,0.236416510228957,0.00665155797595474,0.837491843795568,0.211282546838400,0.602209026146677,0.473624494510893,0.0235594006538772,0.838236064769333,0.823867625766797,0.771393119443061,0.247703134548016,0.0674397925282276,0.256259851876150,0.985671466563610,0.990551943176929,0.461794546228698,0.682219573632243,0.775030969025879,0.689559468591635,0.612849515842633,0.663484635503469,0.677586293857750,0.0179382798579377,0.602245386379864,0.903024284754231,0.129580173548215,0.406572101757084,0.881716869012528,0.251382561822040,0.0480334495370614,0.334387775959101,0.618241834232268,0.602045611973985,0.562701666851304,0.670917827461479,0.119959452212459,0.327212054556514,0.948372356286117,0.709842822874325,0.364546703326522,0.0218039420339373,0.543104624318931,0.606439685853677,0.646028406188848,0.814909755435285,0.156585294024895,0.741006702740286,0.133676106089895,0.285671496883036,0.776581843182992,0.426581346498251,0.341625186771566,0.206937159537096,0.549501882390836,0.0228138008891361,0.169653498497201,0.261915100195289,0.0536623552414438,0.140596670503229,0.0135142373255695,0.631509649315288,0.117508502490327,0.0493688188706275,0.624787002075938,0.283682004848517,0.987872348806542,0.749175113854768,0.0123139423981251,0.438314049493097,0.621903288200323,0.535085737375016,0.223209029693368,0.254612166019346,0.439118774314781,0.847839423053610,0.813927063145011,0.0705515094748151,0.953537356243488,0.387776533726440,0.770329538403273,0.813575465791639,0.572591195819597,0.132237083190299,0.691765316217676,0.681880963297410,0.488492014455580,0.834853570392693,0.446523029254094,0.0192091504447245,0.0598005408655988,0.435124705294552,0.986376618986673,0.867206394993138,0.0336576607111721,0.887269598045552,0.283587057136929,0.239259795397258,0.819274740800635,0.558606335541173,0.105409508290492,0.372214098833823,0.455645834941596,0.564493024799223,0.384070424312497,0.121533314432073,0.0846252637232618,0.0973854707244224,0.161441851615396,0.202558453846184,0.693599752389817,0.0939600782407842,0.550964444445861,0.414187853728102,0.879144255545202,0.995403852503919,0.156689458801395,0.435105292390898,0.402785643775416,0.572707014219681,0.556480138635187,0.862359371362549,0.786483564018026,0.226108891731647,0.0376021035329794,0.211644037374137,0.373748519434997,0.148523677616484,0.980280065626195,0.707029888030896,0.0822649891679644,0.682950560522540,0.467540654780001,0.0802859232164049,0.220832529284715,0.147627131659641,0.447184669009454,0.758452334790787,0.585045867105963,0.435078587054944,0.401912191476389,0.728216442210715,0.732072223102559,0.525948128129038,0.641256324326250,0.996730044806008,0.0919278207588912,0.807567117486275,0.435782953060005,0.807460550859117,0.992429795122986,0.766936559190722,0.977716600715675,0.988243461020772,0.00708299780666244,0.741822287014155,0.911128306368763,0.116337024945217,0.107663938634780,0.988013042660191,0.677289702164722,0.895640959755978,0.151210225470862,0.482796076205989,0.0353209264110130,0.0575309796897872,0.317332033358555,0.624872948365558,0.138536106233924,0.901279011495415,0.355267521680582,0.290372883104724,0.902080092728617,0.751124323207152,0.703619925030778,0.386646647084309,0.987915325432626,0.373690893178274,0.398405303273323,0.411012197664300,0.700757270638988,0.267487048201008,0.718243061827249,0.428121434911064,0.0642805607965626,0.697329313531729,0.677530018455160,0.311946665129517,0.264000576122254,0.305253658953401,0.258319880103912,0.975547244768217,0.483118850533853,0.157358656448006,0.103932210860601,0.276967821844042,0.376948758750854,0.191290295210726,0.351781613363419,0.0833427094966609,0.912834112875454,0.920620456128657,0.311720011361652,0.160317342608011,0.329719196839157,0.503817527011788,0.604806171150068,0.444378847925083,0.255596042926084,0.215051318191511,0.389508041197820,0.733539868678817,0.369042757267111,0.542788281185947,0.917489483025558,0.732318635052492,0.247470467880049,0.897275544748908,0.918201193974264,0.690963797043057,0.750971822797400,0.791361085385873,0.706323504029307,0.235449775343094,0.691058932861215,0.468827010346721,0.443640823060462,0.617309117626770,0.212921980767380,0.820206563889045,0.572604868323092,0.573300434340454,0.888356737744764,0.328925039281357,0.931589480275963,0.988483698110835,0.368674124019067,0.709989060924747,0.246193886807616,0.577190043743247,0.798236014298901,0.307703018151197,0.686072735199758,0.0863395957680454,0.601904847711931,0.607240775737136,0.700225534312404,0.0792667583098238,0.853489268592967,0.500779469728283,0.549426481646190,0.702008743403202,0.199476949675851,0.0999867539807484,0.306682359537798,0.361991292858078,0.886448524758316,0.628581426898446,0.538635641631160,0.248458402336432,0.484487112416406,0.133759842947042,0.477596669785297,0.0723171528722617,0.223001513819503,0.240564741982409,0.949637668033414,0.215149897424490,0.481590852258221,0.782799698027424,0.783808055778480,0.128042509198039,0.968483331362363,0.417133707954714,0.546218902537713,0.767672632370048,0.616807910058624,0.108772555578340,0.967571354706358,0.633956008547764,0.330984453327445,0.447866477372944,0.941032076025355,0.228091878321437,0.382429528145852,0.289891340922395,0.707906273897253,0.0872446690450660,0.0805824389509504,0.366486733394707,0.170049879660911,0.193641888214742,0.00337808906165526,0.291677920543795,0.905878052106649,0.712530532309359,0.743308971252977,0.302591434103216,0.351657737758207,0.0413873356427757,0.622435304829508,0.975943864919603,0.204596354923052,0.848941599404214,0.166065048966203,0.189842003758812,0.582743450874114,0.542134032842629,0.342238888807524,0.554271293684597,0.529215280201089,0.864786140452939,0.609451746236375,0.950203531689533,0.603874630355802,0.709672744652442,0.803241377181244,0.935007695314445,0.0527977932334109,0.956094343275493,0.722273263671913,0.710612556897799,0.561631252599038,0.793828109346646,0.534219828706397,0.858504049034537,0.457162215526815,0.0740596420104845,0.0150181985980476,0.470206895760604,0.530812263054808,0.716214378367086,0.708790065834904,0.382311645539450,0.286663818524122,0.569172688295557,0.597528784673587,0.0598349902748819,0.589343240857154,0.824405366160931,0.870644462022677,0.510939681195446,0.584559897310251,0.575091020733614,0.174203517382686,0.599853577632200,0.882780971241364,0.745691429107140,0.0930646312740233,0.0202693852698532,0.142338721950933,0.749154466571629,0.565475784110944,0.608182855879650,0.196860294335328,0.689538033621810,0.178864557086196,0.226771757847770,0.512430484966353,0.569800200203566,0.976451640929421,0.341635718183023,0.470601591543713,0.428389613244313,0.692470805732558,0.961315997319435,0.198201881286510,0.659960214055617,0.612296998439531,0.408287767929537,0.580297302304094,0.964779123614297,0.359045143578749,0.636828039797270,0.839705307126470,0.670254867784497,0.260023310762567,0.766474850860155,0.608020920950380,0.362083874782914,0.632330602047490,0.706894913560899,0.978408383797581,0.648709793199323,0.574401108129209,0.790776108359478,0.863502265128162,0.203282134648249,0.209921517299385,0.979765856800847,0.596327045904721,0.510820936514782,0.0805538613349556,0.366915609043253,0.832794030766134,0.416237259125168,0.567684503941144,0.492621656189204,0.117870282427075,0.0759711062476299,0.236979017381858,0.932712712568041,0.182930270691532,0.741947792898770,0.0294804422190667,0.338698339927785,0.802813333837099,0.255247543176307,0.136471489483520,0.957667027435461,0.121027428290864,0.577948556525242,0.425551998128066,0.808110419139436,0.110666831529928,0.745675021990866,0.411969515128420,0.976129491457598,0.820302285582846,0.695131633473746,0.194670652940413,0.148562612004755,0.125036036365197,0.384173596653676,0.0757542134359168,0.844536956862823,0.744088359633017,0.449902715890927,0.579515588768092,0.656065729292033,0.235940393324129,0.711039834588299,0.755532459770070,0.233336364003710,0.977591471084376,0.759012600043312,0.227565832212640,0.454576309126176,0.202212612006887,0.160705280858150,0.170455222883246,0.334855472871335,0.810876330585127,0.344333175435938,0.183521783612922,0.425007502964318,0.794783808172258,0.640978983782749,0.198926898614557,0.803432560721964,0.571008750430509,0.546192664834424,0.384266926167513,0.845231358537415,0.174107107011433,0.101533765013786,0.580244971496786,0.987348209333087,0.0645615445163804,0.327384328250332,0.261002885061778,0.804017394760367,0.538992085661761,0.938078653682635,0.625656821467116,0.917460317830456,0.591102472478573,0.839597478031792,0.800176582427166,0.551023180795753,0.389312424719078,0.537905434469784,0.474834912293832,0.783240080108179,0.921748314623769,0.211429010839123,0.430187047379590,0.196027453224776,0.471344969224567,0.0971870913697523,0.0211610416527305,0.354466618709155,0.397225833255377,0.728157412581818,0.765398963438748,0.655425892954259,0.658610113828666,0.142025913904265,0.823793385010943,0.191093877467531,0.633416020856401,0.428125303340441,0.157310528316451,0.940668333679816,0.315314863097874,0.286813230185990,0.534987478018180,0.130407352927067,0.952246105028699,0.483023230187390,0.559545565068857,0.0900136014014073,0.266859203672116,0.708881780861239,0.910475764387114,0.750399705669926,0.370878989335382,0.912555750230731,0.643279837373606,0.0913339588987916,0.168130456136249,0.185557731178108,0.528517111818799,0.103626631397843,0.134153306083791;];


%% compute cycle-averaged thrust, power, and lift (thrust and lift are negative, for minimization)
%% if second number is 0 the function won't plot (much faster)
g = membrane_flapping_fun(x,1)
disp('done');
